[?php
 $tabs = sfContext::getInstance()->getRequest()->getParameter('tabs', null);
 $params_tabs = "";
 $div_update = "div_panel_contenido";
 if($tabs != null)
 { 
<?php if($this->getParameterValue('tabs', 0) == 0): ?>
      $div_update = "div_tab_<?php echo $this->getModuleName()?>";
<?php endif; ?>
   
   $params_tabs = "tabs=tabs";
 }
?]


[?php
 $tipo_despliegue = sfContext::getInstance()->getRequest()->getParameter('tipo_despliegue', 'div');
 if($tipo_despliegue == 'div'): 
?]


<div id="div_acciones_modulo"  align="right">
[?php 
echo link_to_remote(
   image_tag('nuevo.png', 'alt=Nuevo title=Nuevo'),
    array( 'update' => $div_update,
         'url'    => '<?php echo $this->getModuleName()?>/create?'.$params_tabs,
         'method' => 'GET',
         'script' => 'true'
));?]
&nbsp;
[?php 
echo link_to_remote(
   image_tag('listado.png', 'alt=Listado title=Listado'),
    array( 'update' => $div_update,
         'url'    => '<?php echo $this->getModuleName()?>/list?filter=filter&'.$params_tabs,
         'method' => 'GET',
         'script' => 'true'
));?]
&nbsp;
[?php
echo link_to_function(
   image_tag('buscar.png', 'alt=Buscar title=Buscar'),
  visual_effect('toggle_slide', 'div_filtros_<?php echo $this->getModuleName()?>')
);?]
&nbsp;
[?php
echo link_to_function(
   image_tag('ayuda.png', 'alt=Ayuda title=Ayuda'),
  visual_effect('toggle_slide', 'div_filtros_<?php echo $this->getModuleName()?>')
);
 ?]
</div>

[?php endif; ?]

<?php if($this->getParameterValue('tabs', 0) == 0): ?>
[?php //endif; ?]
<?php endif; ?>

